package com.xcity.game.map;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.db.entity.Mine;
import com.xcity.db.entity.Player;

/**
 * 战报
 * @author shipeng.zhu
 *
 */
public class MineReport {
	@JSONField(name = "0")
	protected int reportType;//战报类型(0:掠夺目标失败 1:掠夺目标成功 2:被目标掠夺失败 3:被目标掠夺成功)
	@JSONField(name = "1")
	protected int mineType;
	@JSONField(name = "2")
	protected long time;
	@JSONField(name = "3")
	protected String targetName;
	@JSONField(name = "4")
	protected long targetId;
	public MineReport(){
	}
	
	public MineReport(Mine mine, Player target, long time, int reportType){
		mineType = mine.getMineType();
		this.time = time;
		if(target != null){
			targetName = target.getName();
			targetId = target.getId();
		}
		this.reportType = reportType;
	}

	public int getReportType() {
		return reportType;
	}
	public void setReportType(int reportType) {
		this.reportType = reportType;
	}
	public int getMineType() {
		return mineType;
	}
	public void setMineType(int mineType) {
		this.mineType = mineType;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public String getTargetName() {
		return targetName;
	}
	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}
	public long getTargetId() {
		return targetId;
	}
	public void setTargetId(long targetId) {
		this.targetId = targetId;
	}
}
